<?php    
    include_once( PATH . TEMPLATE . "includes/head.php");
    include_once( PATH . TEMPLATE . "includes/top.php");
    include_once( PATH . TEMPLATE . "includes/menuleft.php");
?>

<div id="content">
    <div>
   <?php 
	foreach ($this->getItems() as $subcategory) {
	    //$subcategory->show();
	    echo '<div class="subcategoria">
		    <a href="'. $this->getNamepage() . "/" . $subcategory->getUrl() .'">
			<div class="img">
			    <img src="'. RAIZ . TEMPLATE .'img/' . $subcategory->getImg() . '" width=100 heigth=100>
			</div>
		    </a>
		    <div class="mame">' . $subcategory->getName() . '</div>
	          </div>';                    
	}
   ?>
    </div>
</div>

<?php
    include_once( PATH . TEMPLATE . "includes/footer.php");    
?>
